cmake_minimum_required(VERSION 3.10)

find_package(Boost COMPONENTS program_options)

include_directories($ENV{DM2016_DEV}/tinyxml/inc ${Boost_INCLUDE_DIRS})
include_directories($ENV{DM2016_DEV})

link_directories(${LIBRARY_OUTPUT_PATH})

aux_source_directory(src SRC)

add_executable(logshow ${SRC})

if( WIN32 )
    target_link_libraries(logshow oslog dmos string misc env tinyxml json ${Boost_LIBRARIES})
else()
    target_link_libraries(logshow oslog dmos string misc env tinyxml json ${Boost_LIBRARIES} rt)
endif()